Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rclc_executor: improve enum type names #379

Merged
merged 6 commits into from
Jun 27, 2023

Conversation

JanStaschulat
Copy link
Contributor

see issue #378

Thanks for your suggestion to improve the names of the enum type names @gavanderhoorn.

@JanStaschulat JanStaschulat requested a review from pablogs9 June 27, 2023 10:58
@JanStaschulat JanStaschulat self-assigned this Jun 27, 2023
@JanStaschulat
Copy link
Contributor Author

@Mergifyio backport iron humble

@mergify
Copy link
Contributor

mergify bot commented Jun 27, 2023

backport iron humble

✅ Backports have been created

@gavanderhoorn
Copy link

Thanks for addressing #378.

Tiny suggestion: I've seen other maintainers use a common prefix for enum members. This helps discoverability, especially when using an editor with code-completion (ie: start typing PREFIX_ and all values show up).

Using a prefix instead of an _EXECUTOR suffix would align with that practice, but it's completely up to you.

Signed-off-by: Jan Staschulat <[email protected]>
Signed-off-by: Jan Staschulat <[email protected]>
Copy link
Member

@pablogs9 pablogs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment, what about prefixing them with RCLC_*** ?

@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2023

Codecov Report

Merging #379 (c3fddcc) into rolling (4b8670d) will decrease coverage by 0.08%.
The diff coverage is 66.66%.

@@             Coverage Diff             @@
##           rolling     #379      +/-   ##
===========================================
- Coverage    69.63%   69.56%   -0.08%     
===========================================
  Files           16       16              
  Lines         2760     2760              
  Branches       766      766              
===========================================
- Hits          1922     1920       -2     
- Misses         452      453       +1     
- Partials       386      387       +1     
Impacted Files Coverage Δ
rclc/src/rclc/executor.c 61.90% <66.66%> (ø)

... and 1 file with indirect coverage changes

Signed-off-by: Jan Staschulat <[email protected]>
@JanStaschulat JanStaschulat changed the title more descriptive names for executor type names Improve executor_type enum names Jun 27, 2023
@JanStaschulat JanStaschulat changed the title Improve executor_type enum names rclc_executor: improve enum type names Jun 27, 2023
Copy link

@gavanderhoorn gavanderhoorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JanStaschulat JanStaschulat merged commit 14c2c41 into rolling Jun 27, 2023
@JanStaschulat JanStaschulat deleted the feature/better-type-names branch June 27, 2023 13:12
mergify bot pushed a commit that referenced this pull request Jun 27, 2023
mergify bot pushed a commit that referenced this pull request Jun 27, 2023
(cherry picked from commit 14c2c41)

# Conflicts:
#	rclc/include/rclc/executor.h
@gavanderhoorn
Copy link

Thank you @JanStaschulat 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants